package basic;

public class Pf {
		
	public static final int PF_SUCCESS          = RedBase.START_PF_ERR + 1;
	public static final int PF_PAGEPINNED		= RedBase.START_PF_ERR + 2;		// page pinned in buffer
	public static final int PF_PAGENOTINBUF		= RedBase.START_PF_ERR + 3;		// page to be unpinned is not in buffer
	public static final int PF_INVALIDPAGE		= RedBase.START_PF_ERR + 4;		// invalid page number
	public static final int PF_FILEOPEN			= RedBase.START_PF_ERR + 5;		// file handle already open
	public static final int PF_CLOSEDFILE		= RedBase.START_PF_ERR + 6;		// file is closed
	public static final int PF_PAGEFREE			= RedBase.START_PF_ERR + 7;		// page already free
	public static final int PF_PAGEUNPINNED		= RedBase.START_PF_ERR + 8;		// page already unpinned
	public static final int PF_EOF				= RedBase.START_PF_ERR + 9;
	public static final int PF_TOOSMALL			= RedBase.START_PF_ERR + 10;
	public static final int PF_LASTWART			= RedBase.START_PF_ERR + 11;
	 
	
	public static final int PF_NOMEM			= RedBase.START_PF_ERR - 0;		// out of memory
	public static final int PF_NOBUF			= RedBase.START_PF_ERR - 1;		// out of buffer space
	public static final int PF_INCOMPLETEREAD	= RedBase.START_PF_ERR - 2;		// incomplete read of page from file
	public static final int PF_INCOMPLETEWRITE 	= RedBase.START_PF_ERR - 3;		// incomplete write of page to file 
	public static final int PF_HDRREAD			= RedBase.START_PF_ERR - 4;		// incomplete read of header from file
	public static final int PF_HDRWRITE			= RedBase.START_PF_ERR - 5;		// incomplete write of header to file
	
	public static final int PF_PAGEINBUF		= RedBase.START_PF_ERR - 6;		// new allocated page already in buffer
	public static final int PF_HASHNOTFOUND		= RedBase.START_PF_ERR - 7;		// hash table entry not found
	public static final int PF_HASHPAGEEXIST	= RedBase.START_PF_ERR - 8;		// page already exists in hash table
	public static final int PF_INVALIDNAME 		= RedBase.START_PF_ERR - 9;		// invalid file name
	public static final int PF_UNIX				= RedBase.START_PF_ERR - 10;	// Unix error
	public static final int PF_LASTERROR		= RedBase.START_PF_ERR - 11;	// Internal PF errors:
	
}
